package com.liao.dao;

import com.liao.bean.Member;

import java.util.List;

public interface MemberDao {

    /**
     * 根据账号模糊查询会员列表
     * @param account
     * @return
     * @throws Exception
     */
    List<Member> selectMemberListLikeMemberName(String account) throws Exception;

    /**
     * 添加会员
     * @param member
     * @throws Exception
     */
    void addMember(Member member) throws Exception;

    /**
     * 修改会员
     * @param member
     * @throws Exception
     */
    void updateMember(Member member) throws Exception;

    /**
     * 根据id删除会员
     * @param memberId
     * @throws Exception
     */
    void deleteMember(String memberId) throws Exception;
}
